home *** CD-ROM | disk | FTP | other *** search
/ Sounds Terrific 1 / Sounds Terrific CD (1994)(Weird Science)(Disc 2 of 2)[!][Amiga-PC].iso / modules / x / xanth3.mod < prev    next >
Encoding:
Text File  |  1994-08-04  |  3.8 KB  |  130 lines

  1. Xanth #1 @5856
  2. Wed Jul 31 18:09:46 1991
  3. MS: Reply Not Needed.
  4.  
  5. This mod is for WWIV 4.12, and I don't know if it will work on any other
  6. version.
  7.  
  8. Mod name:    XANTH3.MOD
  9.  
  10. Description:    This mod will allow your users to post a response to a
  11.         message in another sub (i.e. the Wars sub).  It will
  12.         also tell what sub the original message was in.  This
  13.         is another of those mods which i just took original code
  14.         and manipulated it to make my own.  I got some of the
  15.         text from 8balls Jump mod, so I give him due credit.
  16.  
  17. Disclaimer:    I take no responsibility for anything this code does to your
  18.         computer.  I see no way for anything to happen, but just in
  19.         case...
  20.  
  21. Step 1) Back up your source.
  22.  
  23. Step 2) Load up MSGBASE1.C
  24.  
  25. Step 3) Add the following code to the end of the extern statements:
  26.  
  27. extern int othersub;     /*mod - add */
  28.  
  29. Step 4) Add the following variables in the void scan function:
  30.  
  31.   char s3[81],s4[81];
  32.   int i3;
  33.  
  34. Step 5) Go down to the case statements and after the end of case 'M'
  35.     add the following case...
  36.  
  37.               case 'Z':     /* Mod - add case */
  38.     nl();
  39.     strcpy(s3,"WARZ SUB");
  40.     if (!s3[0])
  41.       break;
  42.     i3=0;
  43.     nl();
  44.     while ((i3<64) && (usub[i3].subnum!=-1)) {
  45.       char s4[81];
  46.       int j;
  47.  
  48.       strcpy(s4,subboards[usub[i3].subnum].name);
  49.       for (j=0;(s4[j]=upcase(s4[j]))!=0;j++)
  50.         ;
  51.       if (strstr(s4,s3)!=NULL) {
  52. /* If you have a quote mod, add this, or change it to suit your
  53. specific mod */
  54.                 if (s[0]!='P')                               /* mod - quote */
  55.                   quote_message(&(msgs[msgnum].msg),         /* mod - quote */
  56.                     (subboards[curlsub].filename));          /* mod - quote */
  57.                 deleted_flag=0;
  58.             i=cursub;
  59.         cursub=i3;
  60.         othersub=i;
  61.                 post();
  62.                 if (deleted_flag && (deleted_flag<=msgnum))
  63.                   --msgnum;
  64.           cursub=i;
  65.         othersub=-1;
  66.           iscan(cursub);
  67.           break;
  68.       }
  69.       ++i3;
  70.     }
  71.     break;
  72. /* this is the end of the case, the following shoul'd already be there */
  73. /*************/
  74.             }
  75.       } else {
  76.  
  77. Step 6) Save MSGBASE1.C
  78.  
  79. Step 7) Load up MSGBASE.C
  80.  
  81. Step 8) Add the following code to the end of the extern statements:
  82.  
  83. extern int othersub;     /*mod - add */
  84.  
  85. Step 9) Search for the following in void inmsg "RE: "
  86.  
  87. Step 10) Add the following code:
  88.  
  89.     if (irt[0]) {            /* already here */
  90.       strcpy(s,"RE: ");      /* already here */
  91.       strcat(s,irt);         /* already here */
  92.       addline(b,s,&l1);      /* already here */
  93.       if (othersub!=-1) {                      /* mod - add */
  94.     strcpy(s,"From Sub: ");                /* mod - add */
  95.     strcat(s,subboards[usub[othersub].subnum].name);  /* mod - add */
  96.     addline(b,s,&l1);                  /* mod - add */
  97.     othersub=-1;                      /* mod - add */
  98.     }                          /* mod - add */
  99.       addline(b,"",&l1);     /* already here */
  100.       irt[0]=0;             /* already here */
  101.  
  102. Step 11) Save MSGBASE.C
  103.  
  104. Step 12) Load up XINIT.C
  105.  
  106. Step 13) Add the following code to the end of the extern statements:
  107.  
  108. extern int othersub;     /* mod - add */
  109.  
  110. Step 14) Add the following code:
  111.  
  112.   global_handle=0;      /* search for this */
  113.   othersub=-1;        /* mod - add */
  114.             /* already here */
  115.   if (x) {        /* already here */
  116.  
  117. Step 15) Save XINIT.C
  118.  
  119. Step 16) Recompile, and you are done.
  120.  
  121. Ok, now you should have no problems with this mod...There is probably
  122. a better way to do it, but this worked for me.  To change the sub you want
  123. the replies to be sent to, change the "WARZ SUB" to the name of the sub
  124. you want them sent to, and make sure the name is in all caps.  NOTE:
  125. This does not mean that the name of the sub in your board edit has to be
  126. in all caps!!!
  127. Ok, well this has been another mod by Xanth :)
  128. 23The Void BBS WWIV net @5856
  129. 2Your sysop:1 X2a3n45t7h
  130. 15(518)372-3632